package com.md.domain.repository;

import com.md.base.BaseRepository;
import com.md.domain.model.po.RoleModulePO;

import java.util.List;

/**
 * @author 刘骄阳
 * @date 5/3/25 2:14 pm
 **/
public interface RoleModuleRepository extends BaseRepository<RoleModulePO> {
  Integer checkPermission(Long userId, Long moduleId);

  List<RoleModulePO> selectUserModulePermission(Long userId);

  void delRoleModuleLink(List<Long> roleIdList, List<Long> delModuleIdList);

  void updateTypeByIdList(List<Long> updateRoleModuleList, Integer type);

  List<RoleModulePO> selectRoleModule(Long roleId);
}
